home *** CD-ROM | disk | FTP | other *** search
- Path: news.lpr.carel.fi!usenet
- From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
- Newsgroups: comp.lang.c
- Subject: Re: Unbuffered character input...
- Date: Tue, 30 Jan 1996 16:41:42 +0200
- Organization: Carelcomp Forest
- Message-ID: <310E2E26.596D@cmt.lpr.mail.carel.fi>
- References: <Pine.SGI.3.91.960129190205.27936A-100000@tahiti.cs.unm.edu>
- NNTP-Posting-Host: renoir.cclahti.carel.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
-
- Caleb Haley wrote:
- >
- > Greetings!
- >
- > Just curious--is there a way to do unbuffered character input in c?
- > i.e. getting just one character without waiting for a carriage return
- > (enter)...
- >
-
- Many systems include header <conio.h> with a function 'getch()' that does this. Some
- systems (*nix) can use the console in raw mode to return characters. Unfortunately,
- there is no standard way of doing unbuffered character input that would be portable to
- any platform. :(
-
- Later,
- AriL
- --
- All my opinions are mine and mine alone.
-